<!DOCTYPE html>
<html>
<head lang="zh">
    <meta charset="UTF-8">
    <title></title>
    </head>
    <script type="text/javascript" src="<%=application.getContextPath()%>/resources/js/jquery-1.7.1.min.js"></script>
<script type="text/javascript">
    function add(){
        $.ajax({
        url:"http://localhost:8080/restful/rest/alarm/getAlarmList",
        type:"post",
        dataType:"json",
        success:function(data){
        	alert("SUCCESS");
        },
        error:function(){
            alert("error");
        }
    });
}
function Fun(){
	 $.ajax({
	        url:"http://127.0.0.1:8081/shopping_rest/rest/topology/getJkerrInfo.json",
	        type:"get",
	        dataType:"json",
	        success:function(data){
	        	console.log(data.option);
	        },
	        error:function(){
	            alert("error");
	        }
	    });
}

</script>
<body>
   <button onclick="add()">add</button>
   <button onclick="Fun()">TEST</button>
</body>
</html>